package com.cccyy.data.inte;

import org.junit.Test;

public class Num1000 {
    @Test
    public void testInte() {
        Integer a = 100;
        Integer b = 100;
        System.out.println(a == b);

        Integer c = 1000;
        Integer d = 1000;
        System.out.println(c == d); //false  包装类型不能使用==  而是应该使用equals
        System.out.println(c.equals(d));

        System.out.println("*******************************************************");

        int a1 = 100;
        int b1 = 100;
        System.out.println(a1 == b1);

        int c1 = 1000;
        int d1 = 1000;
        System.out.println(c1 == d1);
    }


}
